<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	template="/resources/templates/default.xhtml"
	>

	<ui:param name="pageTitle" value="Reserva Hotel Cuenca" />

	<ui:define name="titulo">
		RESERVACIONES
	</ui:define>

	<ui:define name="contenido">
		<h:form>
			<p:growl id="msg" showDetail="true" sticky="true" />
			<h:panelGrid columns="3">
				<h:outputLabel value="Cedula" />
				<h:inputText value="#{reservacionBean.reservacion.clienteCedula}" id="cedula"  />
				<h:message for="cedula" styleClass="help-inline" />
				
				<h:outputLabel value="Nombres y Apellidos" />
				<h:inputText value="#{reservacionBean.reservacion.clienteApellido}" id="apellido"  />
				<h:message for="apellido" styleClass="help-inline" />
								
				<h:outputLabel value="E-Mail" />
				<h:inputText value="#{reservacionBean.reservacion.clienteMail}" id="mail"  />
				<h:message for="mail" styleClass="help-inline" />
				
				<h:outputLabel value="Habitacion" />
				<h:selectOneMenu value="#{reservacionBean.idHabitacion}">
					<f:selectItems value="#{habitacionBean.listaHabitacionDisponibles}" var="obj" itemLabel="#{obj.id}-#{obj.tipo}-#{obj.precio}" itemValue="#{obj.id}"/>
				</h:selectOneMenu>
				
			</h:panelGrid>
			<p:commandButton  actionListener="#{reservacionBean.guardar()}" value="GUARDAR" update="@form"/>			

			

		</h:form>

	</ui:define>

</ui:composition>
